#include "Stack.h"
#include "queue.h"

void TestQueue() {
		Queue q;
		QueueInit(&q);
		QueuePush(&q, 1);
		QueuePush(&q, 2);
		printf("%d ", QueueFront(&q));
		printf("\n");
		QueuePop(&q);
		QueuePush(&q, 3);
		QueuePush(&q, 4);

		while (!QueueEmpty(&q)) {
			printf("%d ", QueueFront(&q));
			QueuePop(&q);
		}
		QueueDestroy(&q);
}
void TestStack1() {
	Stack st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);

	printf("%d ", StackTop(&st));
	StackPop(&st);
	StackPush(&st, 3);
	StackPush(&st, 4);

	while (!StackEmpty(&st)) {
		printf("%d ", StackTop(&st));
		StackPop(&st);
	}
	printf("\n");
}

int main() {
	TestStack1();
	//TestQueue();
	return 0;
}

